package net.onecloud.onecloud.network.service;

import net.onecloud.onecloud.model.Record;
import net.onecloud.onecloud.model.ResultRecord;

import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Path;
import rx.Observable;

/**
 * Created by zaizai on 16/7/31.
 */
public interface RecordService {
    @Headers({"Content-Type: application/json", "Accept: application/json"})//需要添加头

    @POST("/OneCloud/record/add")
    Observable<ResultRecord> addRecord(@Body Record record);

    @GET("/OneCloud/record/query1/{user_id}")
    Observable<ResultRecord> query1(@Path(value = "user_id") String user_id);
}
